<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8" isELIgnored="false"%>
<%@ include file="/WEB-INF/views/shared/taglib.jsp"%>
<%
	request.setAttribute("modelConfigPath", "shop");
%>
<%@ include file="/WEB-INF/views/shared/master/contentHeader.jsp"%>
<style >
	.panel-footer {position:fixed;
right:5px;
left:5px;
bottom:0px;}

</style>
<t:panel>
	<t:form   modelAttribute="supplier" action="/shop/supplier/save" cssClass="form-horizontal">
		<div class="hide">
              <t:hidden path="supplierId"/>              
              <t:hidden path="shopId" />
              <t:hidden path="deleteMark"/>
        </div>
		<t:fieldset legendText="供应商信息" >
			 	<t:formgroup cssClass="has-warning">		         	
	                <t:label path="supplierName"  cssClass="col-sm-2" />
	                <t:input path="supplierName" colClass="col-sm-4" />
	                 <t:label path="supplierNo" cssClass="col-sm-2" />
	                <t:input path="supplierNo" colClass="col-sm-4" />
	            </t:formgroup>
            
	            <t:formgroup>
	               
	                <t:label path="region" cssClass="col-sm-2" />
	                <t:input path="region" colClass="col-sm-4" />
	                <t:label path="address" cssClass="col-sm-2" />
	                <t:input path="address" colClass="col-sm-4" />
	            </t:formgroup>
		</t:fieldset>
		<t:fieldset legendText="个人信息">
			<t:formgroup>
	               
	                <t:label path="contactName" cssClass="col-sm-2" />
	                <t:input path="contactName" colClass="col-sm-4" />
	            </t:formgroup>
	            <t:formgroup>
	                <t:label path="contentPhone" cssClass="col-sm-2" />
	                <t:input path="contentPhone" colClass="col-sm-4" />
	                <t:label path="contentTel" cssClass="col-sm-2" />
	                <t:input path="contentTel" colClass="col-sm-4" />
	            </t:formgroup>
	            <t:formgroup>
	                <t:label path="position" cssClass="col-sm-2" />
	                <t:input path="position" colClass="col-sm-4" />
	                <t:label path="email" cssClass="col-sm-2" />
	                <t:input path="email" colClass="col-sm-4" />
	            </t:formgroup>
		</t:fieldset>
		<t:fieldset legendText="财务信息">
			  <t:formgroup>
	                <t:label path="openingBank" cssClass="col-sm-2" />
	                <t:input path="openingBank" colClass="col-sm-4" />
	                <t:label path="openAccount" cssClass="col-sm-2" />
	                <t:input path="openAccount" colClass="col-sm-4" />
	            </t:formgroup>
	            <t:formgroup>
	                <t:label path="bankAccount" cssClass="col-sm-2" />
	                <t:input path="bankAccount" colClass="col-sm-4" />
	                <t:label path="invoice" cssClass="col-sm-2" />
	                <t:input path="invoice" colClass="col-sm-4" />
	            </t:formgroup>
		</t:fieldset>
		 <t:fieldset legendText="其它信息" > 
	            <t:formgroup>
	                <t:label path="comment" cssClass="col-md-2" />
					<t:textarea path="comment" colClass="col-md-10"/>
	            </t:formgroup>
            </t:fieldset>  
	</t:form>
	<t:panelFoot >
		<t:button icon="icon-floppy-disk" onclick="saveData()" laddaType="progress" cssClass="btn-info" csize="sm">保存</t:button>
	</t:panelFoot>
</t:panel>

<script type="text/javascript">
$(function(){
	$(".panel-heading").remove();
})
function saveData(lBtn){
	if (!$("form:first").valid()){
		return;
	}
	lBtn.start();
	$("form:first").submit();
}	





</script>
<%@ include file="/WEB-INF/views/shared/base/scripts/jqueryui.jsp"%>
<%@ include file="/WEB-INF/views/shared/base/scripts/limitless/default/formtags.jsp"%>
<%@ include file="/WEB-INF/views/shared/base/scripts/limitless/default/formbuttons.jsp"%>
<%@ include file="/WEB-INF/views/shared/base/scripts/limitless/default/formpickers.jsp"%>
<%@ include file="/WEB-INF/views/shared/base/scripts/limitless/default/formselects.jsp"%>
<%@ include file="/WEB-INF/views/shared/base/scripts/limitless/default/formstyling.jsp"%>
<%@ include file="/WEB-INF/views/shared/master/dialog.jsp"%>
<%@ include file="/WEB-INF/views/shared/master/contentFooter.jsp"%>
